function test2(){
	var $details = $(".details");
	var $shield=$(".shield");
	var $trigger=$(".trigger");
	var $info=$(".info");
	//点击显示黑幕
	$trigger.singleTap(function () {
		if(!($(".page2").hasClass("swiper-slide-active")))return;
		$shield.css("display","block");
		$("#swiper1").addClass('swiper-no-swiping');
		$(".detailsReturn").css("z-index","0");
	});
// 	trigger.addEventListener("click",function(){
// 		shield.style.display="block";
// 	},false);

	//点击关闭黑幕
	$info.singleTap(function () {
		$shield.css("display","none");
		$("#swiper1").removeClass('swiper-no-swiping');
		$(".detailsReturn").css("z-index","4");
	});
}

test2();